/**
 * @author GZY
 */
package sg.edu.nus.iss.team4ft.util;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

//IOService specifically for billing
public class BillIOService {	
	
	public static void createBillReportFile(String bill,String fileName) throws IOException{
		FileWriter fw = null;
		BufferedWriter bw = null;
		
		try{
			fw = new FileWriter(fileName, true);		
			bw = new BufferedWriter(fw);
			bw.write(bill);
		}finally{			
			bw.close();
			fw.close();
		}
	}
}
